package cn.java71.springboot.demo1.ctrl;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author oldliu
 * @since 1.0
 */
@Component
@ConfigurationProperties(prefix = "school")
public class SchoolConfig {
    private Config conf;

    public Config getConf() {
        return conf;
    }

    public void setConf(Config conf) {
        this.conf = conf;
    }

    @Override
    public String toString() {
        return "SchoolConfig{" +
                "conf=" + conf +
                '}';
    }
}
